<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">

<div class="pageContent" id="jGridForWarehouseLookUp"></div>

<script type="text/javascript">
(function($){
    
    var flagFunction=function(data)
    {
        if (data == 0) {
            return '<@label    key="no.C">否</@label>';
        } else if (data == 1) {
            return '<@label    key="yes.C">是</@label>';
        }
    };
    var flagOption=[
         {value: '', label: '<@label key="all.C">所有</@label>'},
         {value: 0, label: '<@label key="no.C">否</@label>'},
         {value: 1, label: '<@label key="yes.C">是</@label>'}
        ];
    $('#jGridForWarehouseLookUp').jGrid({
        layoutH: 135,
        base: '${rc.getContextPath()}/manage/warehouse/',
        url: 'selectWarehouseList',
        columns: [
            {field: '_index', text: '<@label key="serialNumber.C">序号</@label>', width: 40},
            {field: 'warehouseCode', text: '<@label key="WarehouseCode.C">仓库编号</@label>', width: 100, query: true},
            {field: 'warehouseText', text: '<@label key="WarehouseText.C">仓库描述</@label>', width: 100, query: true},
            {field: 'warehouseTypeCode', text: '<@label key="WarehouseTypeCode.C">仓库类型编号</@label>', width: 100, query: false,orderTable:'tt'},
            {field: 'warehouseTypeText', text: '<@label key="WarehouseTypeText.C">仓库类型描述</@label>', width    : 100, query: false ,orderTable:'tt'},
            {field: 'locationManageFlag', text: '<@label key="locationManageFlag.C">启用库位</@label>', width: 50, transform: flagFunction},
            {field: 'negativeInventoryFlag', text: '<@label key="negativeInventoryFlag.C">允许负库存</@label>', width: 50,orderTable:'t', transform: flagFunction},
            {field: '_lookup', bringBackFields: ['warehouseCode'], text: '请选择', width: 100}
        ],
        query: {
            advancedqueryfields: [
            {field: 'warehouseTypeCode', text: '<@label key="WarehouseTypeCode.C">仓库类型编号</@label>'},
            
            {field: 'warehouseTypeText', text: '<@label key="WarehouseTypeText.C">仓库类型描述</@label>'},
            
            ]
        }
        
    });
})(jQuery);
</script>